﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<GRUPO_4.Dominio.Empresa>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Lista de Empresas
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Lista de Empresas</h2>
        <table>
        <tr>
            <th>               </th>
            <th>Código</th>
            <th>Razon Social</th>
            <th>Ruc</th>
            <th>telefono</th>
            <th>email</th>
            <th>clave</th>
            <th>RubroEmpresa</th>
          
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Edit", new { CodEmpresa = item.CodEmpresa }) %> 
                <%: Html.ActionLink("Ver", "Details", new { CodEmpresa = item.CodEmpresa })%> 
                <%: Html.ActionLink("Eliminar", "Delete", new { CodEmpresa = item.CodEmpresa })%>
            </td>

            <td><%:  item.CodEmpresa %> </td>
            <td><%:  item.RazonSocial %> </td>
            <td><%:  item.Ruc %> </td>
            <td><%:  item.telefono %> </td>
            <td><%:  item.email %> </td>
            <td><%:  item.clave %> </td>
            <td><%:  item.RubroEmpresa %> </td>
          
                
        </tr>
    
    <% } %>

    </table>
    <p>
        <%: Html.ActionLink("Nuevo", "Create") %>
    </p>
</asp:Content>
